
/**
*@author Syrings 
*@version 12 March 2012
//********************************************/
package cell;
import player.*;

public class HospitalCell extends Cell{
	
	public HospitalCell(int cellId){
		this.name = "+";
		this.cellId = cellId;
	}
	
	public void TriggerCell(Player player){
		StartHospital(player, false);
	}
	
	public static void StartHospital(Player player, boolean fromGHCell){
		System.out.println("You are in Hospital");
		
		int sePoint = player.getSEPoint();
		if(sePoint <=0){
			player.setSEPoint(sePoint+1);
		}
		else{
			System.out.println("You stop this round");
			//return Home Cell
			player.setLocation(6, 5);
		}
	}
}